/**
 * Project Name:design-pattern <br/>
 * File Name:CaffeineBeverage.java <br/>
 * Package Name:com.ftu.study.pattern.template <br/>
 */
package com.ftu.study.pattern.template;

/**
 * <p>  </p>
 * @version 1.0 2018年12月3日 mq 
 */
public abstract class CaffeineBeverage {
    final void prepareRecipe() {
        boilWater();
        brew();
        pourInCup();
        addCondiments();
    }
    abstract void brew();
    abstract void addCondiments();
    
    void boilWater() {
        System.out.println("Boiling water");
    }
    void pourInCup() {
        System.out.println("Pouring into cup");
    }
}
